package cn.zymall.common.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

@Data
@EqualsAndHashCode(callSuper=true)
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "order_after")
public class OrderAfter extends BaseEntity implements Serializable {
    /**
     *  售后ID（无意义）
     */
    @TableId(value = "ORDER_AFTER_ID", type = IdType.AUTO)
    private Integer orderAfterId;

    /**
     *  用户编号
     */
    @TableField(value = "USER_ID")
    private Integer userId;

    /**
     * 订单编号
     */
    @TableField(value = "ORDER_ID")
    private String orderId;

    /**
     *   售后类型编号（仅退款，换货，退款退货）
     */
    @TableField(value = "ORDER_AFTER_TYPE")
    private Byte orderAfterType;

    /**
     *  申请备注信息
     */
    @TableField(value = "ORDER_REMARK")
    private String orderRemark;

    /**
     * 申请配图a
     */
    @TableField(value = "ORDER_PICTURE_A")
    private String orderPictureA;

    /**
     * 申请配图b
     */
    @TableField(value = "ORDER_PICTURE_B")
    private String orderPictureB;

    /**
     *  申请配图c
     */
    @TableField(value = "ORDER_PICTURE_C")
    private String orderPictureC;

    /**
     * 退款金额（可以为空）
     */
    @TableField(value = "ORDER_AFTER_MONEY")
    private Long orderAfterMoney;

    /**
     *   状态（0未处理，-1未同意，1已同意）
     */
    @TableField(value = "ORDER_AFTER_STATUS")
    private Byte orderAfterStatus;

    /**
     * 未同意次数
     */
    @TableField(value = "ORDER_COUNT")
    private Integer orderCount;

    /**
     *   申请售后时间
     */
    @TableField(value = "ORDER_AFTER_CREATE_TIME")
    private Date orderAfterCreateTime;

    /**
     *  商家处理时间
     */
    @TableField(value = "ORDER_AFTER_MARCHANT_HANDLE_TIME")
    private Date orderAfterMarchantHandleTime;

    private static final long serialVersionUID = 1L;

    public static final String COL_ORDER_AFTER_ID = "ORDER_AFTER_ID";

    public static final String COL_USER_ID = "USER_ID";

    public static final String COL_ORDER_ID = "ORDER_ID";

    public static final String COL_ORDER_AFTER_TYPE = "ORDER_AFTER_TYPE";

    public static final String COL_ORDER_REMARK = "ORDER_REMARK";

    public static final String COL_ORDER_PICTURE_A = "ORDER_PICTURE_A";

    public static final String COL_ORDER_PICTURE_B = "ORDER_PICTURE_B";

    public static final String COL_ORDER_PICTURE_C = "ORDER_PICTURE_C";

    public static final String COL_ORDER_AFTER_MONEY = "ORDER_AFTER_MONEY";

    public static final String COL_ORDER_AFTER_STATUS = "ORDER_AFTER_STATUS";

    public static final String COL_ORDER_COUNT = "ORDER_COUNT";

    public static final String COL_ORDER_AFTER_CREATE_TIME = "ORDER_AFTER_CREATE_TIME";

    public static final String COL_ORDER_AFTER_MARCHANT_HANDLE_TIME = "ORDER_AFTER_MARCHANT_HANDLE_TIME";
}